exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 372 discussion

A SysOps administrator needs to create an Amazon S3 bucket as a resource in an AWS CloudFormation template. The bucket name must be randomly generated, and the bucket must be encrypted. Other resources in the template will reference the bucket.

Which CloudFormation resource definition should the SysOps administrator use to meet these requirements?

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Student013657
4 months, 3 weeks ago
Selected Answer: B
I would go for B
upvoted 1 times
...
icecool36
8 months, 2 weeks ago
D is wrong because null values on the property is not allowed. Hence B is correct.
upvoted 2 times
...
r2c3po
10 months ago
Selected Answer: A
Resources: MyS3Bucket: Type: AWS::S3::Bucket Properties: BucketName: !Sub "my-s3-bucket-${AWS::AccountId}-${AWS::Region}-${AWS::StackName}-${AWS::StackId}" AccessControl: Private # or the desired access control policy Encryption: ServerSideEncryptionConfiguration: - ServerSideEncryptionByDefault: SSEAlgorithm: AES256 # or any other encryption algorithm
upvoted 1 times
r2c3po
10 months ago
Make sure to adjust the bucket name or other properties based on your specific requirements.
upvoted 1 times
...
null0xAF
8 months, 3 weeks ago
lol How did you pick A and give explanation that uses Sub to insert a unique name. . . Answer A literally states a Bucket name of "DOC-EXAMPLE-BUCKET" this is a static name. . . When you want a unique randomly generated name, which you get if you don't specify the bucketname... your explanation makes 0 sense.
upvoted 1 times
...
...
TwinSpark
1 year ago
Selected Answer: B
I would go for B, for exam purpose, but as already said by ahrentom from beginning 2023 default encryption is enable by default: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucket-encryption.html
upvoted 2 times
...
ahrentom
1 year, 1 month ago
I would go with D, because the default Bucket encrytion is always enabled with SSE-S3. I´ve checked this settings in my account. "BucketEncryption Specifies default encryption for a bucket using server-side encryption with Amazon S3-managed keys (SSE-S3), AWS KMS-managed keys (SSE-KMS), or dual-layer server-side encryption with KMS-managed keys (DSSE-KMS). " https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html
upvoted 1 times
...
mana25
1 year, 3 months ago
Selected Answer: B
B since it doesnt specify NAME
upvoted 3 times
...
mh8
1 year, 3 months ago
Selected Answer: B
B is the answer as it doesnt mention any name.
upvoted 3 times
...
alexleely
1 year, 3 months ago
Selected Answer: B
voting for B
upvoted 2 times
...
VeeAWS
1 year, 3 months ago
Should be "B" is correct answer Random name is the key. "A" and "C" is specified S3 name, so both is not correct. "D" is also not because no encryption policy.
upvoted 3 times
...
Zotarix
1 year, 3 months ago
In C and A the bucket named DOC-EXAMPLE-BUCKET is created and it's wrong because bucket name only allows lowercase letters. "A name for the bucket. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name." in D the bucket created has a random name but encryption is not configured. The correct answer is B due that no contains the BucketName parameter and the encryption is configured. Source: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html
upvoted 2 times
[Removed]
1 year, 2 months ago
BucketName: A name for the bucket. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. Source: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket.html
upvoted 1 times
...
...
trvtrinh
1 year, 3 months ago
Option A specifies a static bucket name "DOC-EXAMPLE-BUCKET", but the requirement is for a randomly generated bucket name. Option C specifies only the bucket name, but it doesn't include encryption settings, and the requirement is for the bucket to be encrypted. Option D is an incomplete definition; it doesn't specify any properties, including the bucket name and encryption settings. Option B is the correct choice as it creates an S3 bucket with a randomly generated name and enables server-side encryption with AES256. The randomly generated bucket name is handled by AWS CloudFormation during the stack creation, and the bucket name will be unique for each stack.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago