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 31–40 of 492

Q31

Which service aids in building event-driven applications?

  • A Amazon SQS
  • B AWS Lambda
  • C Amazon RDS
  • D AWS IAM
Explanation AWS Lambda enables you to run code in response to events, while SQS and RDS are for message queuing and database management, respectively, and IAM handles permissions.
Q32

A company needs to automatically scale its EC2 instances based on demand. Which service should they use?

  • A Amazon RDS
  • B Auto Scaling
  • C AWS Load Balancer
  • D AWS Config
Explanation Auto Scaling automatically adjusts the number of EC2 instances based on the demand, unlike RDS, Load Balancer, and Config which serve different purposes.
Q33

What happens when you set an S3 bucket policy to deny access to all users?

  • A Everyone can still access it
  • B Only root account can access
  • C Access is restricted to specified users
  • D No user can access it
Explanation Denying access to all users effectively blocks all access to the bucket, while the other options do not accurately describe the policy’s impact.
Q34

You are configuring a Lambda function. Which IAM role should you assign?

  • A Lambda execution role
  • B S3 access role
  • C VPC access role
  • D EC2 instance role
Explanation The Lambda execution role allows the function to access AWS resources as needed.
Q35

What happens when you declare a resource in a CloudFormation template?

  • A Resource is created immediately
  • B CloudFormation waits indefinitely
  • C Resource is created on stack creation
  • D Resource is only created if updated
Explanation Resources are provisioned when the stack is created or updated.
Q36

A company needs to secure its S3 bucket. Which option is mandatory?

  • A Enable versioning
  • B Set bucket policy
  • C Enable MFA Delete
  • D Set lifecycle rules
Explanation Setting a bucket policy is essential for access control in S3.
Q37

What happens when an instance type doesn't support EBS optimization?

  • A Performance remains unaffected.
  • B EBS volumes become unreadable.
  • C Network performance may be reduced.
  • D Instance cannot be launched.
Explanation Without EBS optimization, there may be reduced network performance due to shared bandwidth.
Q38

You are configuring RDS for MySQL with Multi-AZ deployments. What is a key benefit?

  • A Improved performance for reads.
  • B Automatic backups are enabled.
  • C High availability with failover.
  • D Increased storage capacity.
Explanation Multi-AZ provides high availability with automatic failover to the standby instance.
Q39

A company needs to automatically scale its serverless application based on demand. Which service should they use?

  • A EC2 Auto Scaling.
  • B AWS Lambda.
  • C AWS Batch.
  • D EC2 Spot Instances.
Explanation AWS Lambda automatically scales based on the number of requests or events.
Q40

Which AWS service is used to create serverless applications?

  • A AWS Lambda
  • B AWS Elastic Beanstalk
  • C Amazon EC2
  • D Amazon RDS
Explanation AWS Lambda allows you to run code without provisioning servers; the others require servers or instances.