ATTA Sample Questions & Answers
Security and reliability testing lead the way as the biggest quality characteristics tested, ahead of static and dynamic analysis, decision and statement testing in white-box technique, reviews, test tools and automation, and the analyst's part in risk-based testing.
Launch the full ATTA simulator →Showing 10 of 20 free samples.
- Question 1Advanced
Quality Characteristics for Technical Testing · TTA-4.2.1 (K4) For a particular scenario, analyze the non-functional requirements and write the respective sections of the test plan
You are tasked with performance testing a REST API endpoint that processes financial transactions. The non-functional requirement states: "The endpoint must process 500 transactions per second (TPS) with an average response time under 200ms." After running a load test, you observe the following results:
- Throughput: 350 TPS
- Average Response Time: 180ms
- CPU Utilization on the application server: 95%
- Memory Utilization: 40%
Based on these results, what is the MOST likely bottleneck?
Show answer & explanation
Correct answer: B
The response time is well within the required limit (180ms < 200ms), but the throughput is significantly below the target (350 TPS < 500 TPS). The critical indicator is the CPU utilization at 95%, which means the processor is maxed out and cannot handle more work. This CPU saturation is preventing the system from achieving the target throughput. Memory utilization is low, and there is no data to suggest a network or database issue.
- Question 2Advanced
Static and Dynamic Analysis · TTA-3.2.2 (K3) Use data flow analysis to detect if code has any data flow anomalies
True or False: Achieving 100% decision coverage guarantees that all data flow anomalies of type 'UR' (Undefined-Referenced) will be detected.
Show answer & explanation
Correct answer: B
Decision coverage is a control-flow testing technique that ensures all branches in the code are exercised. Data flow analysis, which detects UR anomalies, focuses on the lifecycle of variables. It is possible to have 100% decision coverage while still having a data path where a variable is used before initialization. For example, the use of the uninitialized variable could occur within a code block that is fully executed as part of a single branch.
- Question 3Advanced
White-Box Test Techniques · TTA-2.4.1 (K3) Design test cases for a given test object by applying the modified condition/decision test technique to achieve full modified condition/decision coverage (MC/DC)
A software component for an avionics system (DO-178C, Level A) has the following decision:
if (A && (B || C)). To achieve 100% Modified Condition/Decision Coverage (MC/DC), which test case pair demonstrates that condition 'B' independently affects the outcome?Show answer & explanation
Correct answer: A
To show that 'B' independently affects the outcome, 'B' must be the only condition that changes, the other conditions must be held constant, and the overall outcome of the decision must change. In this pair, A is held as True, C is held as False. When B changes from True to False, the outcome changes from True (T && (T || F) -> T) to False (T && (F || F) -> F). This is the correct independence pair for condition B.
- Question 4Intermediate
Reviews · TTA 5.2.1 (K4) Analyze an architectural design and identify problems according to a checklist provided in the syllabus
You are leading the technical review of a new distributed caching service. The architect has presented a design that prioritizes data consistency. Which programming practice from the review checklist should you question most critically, as it often trades consistency for performance or availability?
Show answer & explanation
Correct answer: B
Data caching inherently introduces a potential for stale data, which is a consistency problem. While caching significantly improves performance by serving data from a local, faster copy, it creates a challenge in ensuring that the cached data is invalidated or updated when the source data changes. In a system where data consistency is the top priority, the caching strategy (e.g., write-through, write-back, time-to-live) must be rigorously reviewed.
- Question 5Beginner
Quality Characteristics for Technical Testing · TTA-4.3.1 (K2) Explain the reasons for including security testing in a test approach
A penetration tester gains unauthorized access to a system by submitting the string
' OR 1=1; --into a login form's username field. This bypasses authentication and logs them in as the first user in the database. This is a classic example of what type of security vulnerability?Show answer & explanation
Correct answer: C
This attack works by injecting SQL commands into the input field. The
' OR 1=1clause modifies the WHERE clause of the SQL query to always be true, and the--comments out the rest of the original query (like the password check). This allows the attacker to bypass the intended logic of the SQL statement, which is the definition of an SQL Injection attack. - Question 6Intermediate
Quality Characteristics for Technical Testing · TTA-4.4.1 (K2) Explain the reasons for including reliability testing in a test approach
To test the fault tolerance of a web application's infrastructure, a Technical Test Analyst uses a tool to randomly terminate virtual machine instances in the production environment during peak load to ensure the auto-scaling and load balancing systems respond correctly. This technique is an example of:
Show answer & explanation
Correct answer: C
Fault injection is the process of deliberately introducing errors or failures into a system to test its response. Terminating a server instance is a classic example of injecting a fault into the system's environment to verify its fault tolerance and recoverability mechanisms. This practice is often referred to as Chaos Engineering.
- Question 7Intermediate
Static and Dynamic Analysis · TTA-3.2.1 (K3) Use control flow analysis to detect if code has any control flow anomalies and to measure cyclomatic complexity
You are analyzing a complex legacy function with the following control flow graph. Calculate its cyclomatic complexity.
graph TD A[Start] --> B{Decision 1} B -->|T| C{Decision 2} B -->|F| D[Stmt 1] C -->|T| E[Stmt 2] C -->|F| F{Decision 3} D --> G{Decision 4} E --> H[End] F -->|T| G F -->|F| I[Stmt 3] G -->|T| J[Stmt 4] G -->|F| K[Stmt 5] I --> H J --> H K --> HShow answer & explanation
Correct answer: B
Cyclomatic Complexity can be calculated using the formula M = E - N + 2P, where E is the number of edges, N is the number of nodes, and P is the number of connected components (P=1 here). The graph has 11 nodes (A-K) and 14 edges. So, M = 14 - 11 + 2 = 5. Alternatively, using the simpler formula M = D + 1, where D is the number of decision nodes (nodes with more than one outbound edge). The decision nodes are B, C, F, and G. There are 4 decision nodes. So, M = 4 + 1 = 5.
- Question 8Beginner
Quality Characteristics for Technical Testing · TTA-4.8.1 (K2) Explain the reasons for including coexistence testing in a test approach
A new version of a widely used open-source library is being integrated into your project. Which type of testing is MOST critical to ensure the new library version does not negatively interact with other existing libraries or the operating system?
Show answer & explanation
Correct answer: B
Coexistence testing, a sub-characteristic of compatibility, verifies that an application can run in the same environment (e.g., on the same hardware and OS) with other applications without causing resource conflicts or other negative interactions. Integrating a new library version falls directly under this, as it must coexist peacefully with all other software components in the environment.
- Question 9Intermediate
White-Box Test Techniques · TTA-2.2.1 (K3) Design test cases for a given test object by applying statement testing to achieve a defined level of coverage
During a review of a code module, you find 15 'if' statements, 5 'case' statements in a switch, and 3 'while' loops. There are no other branching instructions. What is the minimum number of test cases required to achieve 100% statement coverage?
Show answer & explanation
Correct answer: C
The number of decision points determines the cyclomatic complexity and the minimum number of paths for path coverage, which is related to the number of tests for decision or branch coverage. However, statement coverage simply requires that every executable line of code is run at least once. A single, carefully constructed test case could potentially execute all statements in the module if there's a linear path through all branches. Conversely, it might take many test cases. The number of decision points does not directly determine the number of tests for statement coverage.
- Question 10Intermediate
Quality Characteristics for Technical Testing · TTA-4.3.2 (K2) Explain the principal aspects to be considered in planning and specifying security tests
A financial services company is developing a new stock trading platform. A key non-functional requirement is to prevent unauthorized users from executing trades, even if they manage to acquire a valid session token. Which security sub-characteristic, according to ISO 25010, is MOST relevant to test for this requirement?
Show answer & explanation
Correct answer: D
While several security characteristics are relevant, Accountability is the most specific. It is defined as the degree to which the actions of an entity can be traced uniquely to the entity. Testing for this requirement involves ensuring the system correctly checks that the user associated with the session token has the proper authorization (rights and privileges) to perform the 'execute trade' action. This links the action directly to an accountable, authorized user.
Ready for the real thing?
The full ATTA simulator has every exam-style question, timed mode, and instant scoring.