AWS DevOps Engineer Professional DOP-C01 – Question496

What is the correct syntax for the AWS command to create a single region trail?

A.
aws create-trail –name trailname –s3-object objectname
B. aws cloudtrail –s3-regionname IPaddress create-trail –name trailname
C. aws cloudtrail create-trail –name trailname –s3-bucket-name bucketname
D. aws cloudtrail create-trail –name trailname –s3-portnumber IPaddress

Correct Answer: C

Explanation:

Explanation:
The command aws cloudtrail create-trail –name trailname –s3-bucket-name bucketname will create a single region trail. You must create a S3 bucket before you execute the command, with proper CloudTrail permissions applied to it (and you must have the AWS command line tools (CLI) on your system).
Reference:
http://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrai…