Amazon AWS

AWS Certified Developer – Associate

DVA-C02
Popular

The AWS Certified Developer – Associate (DVA-C02) exam tests your proficiency in developing applications on AWS. It is designed for developers looking to validate their skills in AWS development.

492 questions 0 views Free
Start Mock Test Timed · Full-length · Scored

Questions 21–30 of 492

Q21

What happens when you launch an EC2 instance without a security group?

  • A Instance launches with default security group
  • B Launch fails with an error
  • C Instance has no network access
  • D Instance is open to all traffic
Explanation An EC2 instance launches with a default security group if no security group is specified, allowing traffic as per its rules.
Q22

Which AWS service is used for serverless application deployment?

  • A AWS Lambda
  • B Amazon RDS
  • C Amazon EC2
  • D AWS Fargate
Explanation AWS Lambda is designed for serverless applications, while EC2 and RDS are traditional computing services.
Q23

A company needs to ensure that its AWS S3 bucket cannot be accessed from the internet. What should they do?

  • A Enable Block Public Access
  • B Use a CloudFront distribution
  • C Enable Versioning
  • D Change the bucket name
Explanation Enabling Block Public Access prevents internet access, unlike CloudFront, which is for distribution.
Q24

What happens when an EC2 instance terminates unexpectedly?

  • A Data on EBS is preserved
  • B The EBS volume is deleted
  • C Instance restarts automatically
  • D All data is lost
Explanation If the EBS volume is set to 'do not delete', data is preserved, unlike option B.
Q25

Which service automatically adjusts your application's capacity?

  • A Amazon Elastic Load Balancing
  • B Amazon Auto Scaling
  • C Amazon CloudFront
  • D Amazon Route 53
Explanation Amazon Auto Scaling adjusts capacity based on demand, while the others do not provide automatic scaling.
Q26

A company needs to run code in response to S3 events. Which service should they use?

  • A AWS Lambda
  • B Amazon EC2
  • C Amazon ECS
  • D AWS Batch
Explanation AWS Lambda is designed for event-driven execution for tasks like this, while the others require manual intervention or different setup.
Q27

What happens when an IAM policy is attached to a user and denies all actions?

  • A User can perform any actions.
  • B User can only view permissions.
  • C User cannot perform any actions.
  • D User can perform admin actions.
Explanation A deny policy overrides any allows, preventing all actions, while the other options incorrectly imply permissions remain.
Q28

A company needs to store large amounts of unstructured data. Which AWS service should they use?

  • A Amazon S3
  • B Amazon RDS
  • C Amazon DynamoDB
  • D AWS Lambda
Explanation Amazon S3 is designed for large-scale storage of unstructured data, whereas RDS and DynamoDB are for structured data, and Lambda is a compute service.
Q29

You are configuring an IAM policy that needs to allow EC2 instances to access certain S3 buckets. What should the policy include?

  • A ec2:AccessBucket
  • B s3:ListBucket
  • C ecs:DescribeClusters
  • D iam:AttachRole
Explanation The s3:ListBucket permission is necessary to allow EC2 instances to access S3 buckets; the other options are either invalid or not related.
Q30

What happens when you terminate an EC2 instance with an EBS volume set to 'Delete on Terminate'?

  • A EBS volume is deleted
  • B EBS volume is retained
  • C Instance stops functioning
  • D Instance enters hibernation
Explanation The EBS volume will be deleted if it's configured to 'Delete on Terminate'; otherwise, it remains intact.