A SysOps administrator needs to provide a user with the ability to launch EC2 instances but only of type t2.micro. Which IAM policy condition should be used?
Answer
Condition: StringEquals: ec2:InstanceType: t2.micro
Explanation
The ec2:InstanceType condition key can be used with StringEquals to restrict the instance type to t2.micro.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
An application running on Amazon EC2 needs to access an Amazon RDS database without hardcoding credentials. Which AWS service should be used to securely store and retrieve the credentials?
View question →
A SysOps administrator is using AWS Systems Manager Session Manager to connect to EC2 instances. Which prerequisite must be met for Session Manager to work?
View question →
A company wants to receive a notification when the CPU utilization of an EC2 instance exceeds 80% for 5 minutes. Which combination of services should be used?
View question →
A SysOps administrator needs to store application logs in a durable and cost-effective manner for long-term retention. The logs are infrequently accessed but must be retrievable within minutes. Which storage class is MOST suitable?
View question →
An application running on EC2 instances in a private subnet needs to access Amazon S3 without using the public internet. What should be configured?
View question →
A SysOps administrator must ensure that an RDS database is not publicly accessible. Which action should be taken?
View question →