Sample Questions Flashcards Preview

SE Java Cert 1 > Sample Questions > Flashcards

Flashcards in Sample Questions Deck (66):
1

True or false: you should expect a Java servlet container to support EJBs.

False. EJBs are supported by J2EE-compliant application servers, but typically not by servlet containers.

2

True or False: BT response times only measure the response time for a single thread, not an entire asynchronous BT

true (use E2E latency for the entire async BT)

3

Why are some lines between Tiers solid and some dashed on the app flow map?

the dashed lines indicate asynchronous behavior, whereas the solid ones indicate synchronous behavior.

4

Do you support Spray with Scala?

Yes, but Spray is not supported as a first-class Web framework by AppD, meaning that BT detection will not be automatic, E2E detection will have to be configured, and there is a good chance some custom correlation might be needed. IOW, this is a complicated environment.

5

The customer informs you that their application is using some fancy classloader logic, and they want to detect BTs from classes in one specific class loader, even though the same class name is used in other class loaders. Is this possible?

Not without further information

6

Show how to configure a rule from an inner class that is an interface

Must know it's doable!
Class name syntax
Proper selection of "implements an interface

7

You have discovered that the customer's environment uses an OSGi container. What is your next step?

https://docs.appdynamics.com/display/PRO42/OSGi+Infrastructure+Configuration

8

As of October, 2016, what must you do to configure the Java agent to work with modules?

Modules have not appeared in any JDK shipping as of 2016, so there is nothing to do – you won't see them until at least Java 9.

9

rue or False: Java supports more than one type of classloading scheme

True

10

In AppD 4.2 what are the two NoSQL databases we support?

Cassandra and MongoDB

11

How many of these databases are relational databases?

PostgreSQL
OrientDB
Cassandra
MongoDB
Oracle

PostgreSQL and Oracle

12

What does AppD Support OOTB?

Oracle
DB2
Sybase
PostgreSQL (aka "Postgres")

13

How do I get the bind variables to show in queries?

capture-raw-sql node property

14

I'm using a just-released JDBC driver for MySQL. Will you work with my driver?

yes, but we'd likely have to set one or all of these properties in app-agent-config.xml:

jdbc-statements

jdbc-connections

jdbc-prepared-statements
jdbc-callable-statements

15

How can you find the call chain of a method that does not appear in snapshots?

set the node property debug-interceptors on the class and method

16

show the syntax for simultaneously setting debug-interceptors on com.foobar.MyClass, method get() and also on the constructor of com.foobar.MyOtherClass

com.foobar.MyClass/get,com.foobar.MyOtherClass/

17

What tool is available and when should decompiling be used?

Tool: GUI-based tool is called JD-GUI

When: done with consent of the customer. Try to avoid.

18

What is "Spring" ?

Spring may be used to mean an alternative to EJBs (Spring Beans) or any combination of the Spring projects.

19

Can application use both Spring Beans and EJBs?

Yes (but it is unlikely you'd actually see an application like that)

20

Show me an example of Spring support *in a demo

The easiest way to do this is to show Spring Bean transaction detection

21

Customer asks if AppDynamics support the Spring framework.

Yes! However, no credit will be given unless you get this question clarified. Which specific Spring projects?

22

From the options, what supports ESB like semantics but isn't an ESB?

Apache Camel
Apache ServiceMix
Fuse ESB
Mule ESB
Netty
Apache NiFi

Netty
Apache NiFi

23

Will AppDynamics work with Mule ESB OOTB?

Typically the answer is no, not OOTB. ESBs almost always require some advanced configuration. Exact versions of the ESB and any sub-packages is always needed.

24

In a BT log how can you distinguish find-entry-points output from regular BT logging output?

"Discovery stack" vs. "Logging request stack".

25

Show how to set node properties

Tiers & Nodes → (specific node) → Configure.

26

which Java releases use PermGen vs. Metaspace?

PermGen is Java 7 and Metaspace is Java 8. WHY? Because it directly affects the metrics that can be set for threshold alerts, which can be a forewarning of an upcoming JVM crash.

27

How do you turn on Java Garbage collection and turn it of via the CLI?

-xx to turn on and -XX to turn off

28

My application uses a 4 GB heap. Which garbage collector is likely best?

G1

29

Where can I see when garbage collection is happening

on the Memory tab in a Node page

30

Your customer used to have constant problems hitting the dreaded "OutOfMemoryError: PermGen space" problem, but now claims that they have "fixed" the problem by moving to Java 8. From that information, you conclude you should put a health rule on what?

Metaspace usage.

31

EJB classes are commonly seen in War files

False. EJBs are part of the full J2EE specification and are typically found in Ear files, not War files.

32

Your customer is using a standard J2EE application server. Before AppDynamics gets configured or starts up, and assuming the customer allows you to see files on the filesystem, how can you know in advance what business transactions you should expect to see?

Look at the web.xml deployment descriptors in the app server directories.

33

Would you expect to find the interface for a JMS message in a J2SE environment?

No

34

Would you expect to find the interface for a JMS message in a J2EE environment?

Yes

35

AppDynamics can automatically discover EJB methods as business transactions. In which Java environment is this most likely to be useful (J2SE or J2EE)?

J2EE

36

It is possible to use JMS messaging in a J2SE environment, with no app server or servlet container. What must be configured in the environment to do this?

the code for the JMS functionality must somehow be provided to the environment. Specifically, the classpath or OSGi environment must be configured to know where to find implementation classes for JMS, as well as the base interface specifications for JMS.

37

how many of these languages can AppDynamics monitor?

Java
Scala
Groovy
Clojure
Gosu
Erlang

5 (all but Erlang)

38

My app uses Play framework, not servlets. Will my Play BTs be discovered automatically?

yes

39

Can you instrument Guidewire?

Guidewire is an application, the language it uses is Gosu. We have had success instrumenting Guidewire, but since changes to the underlying Gosu language are not published regularly we don't know what custom configuration (if any) might be needed for your particular app.

40

Do we support Java version 5 and below?

No

41

If you're using JRockit and it's errors, what should you do?

Kill the process and restart it.

42

What is a limitation of Websphere and Java?

You have to use the java version bundled.

43

What Java version should you avoid?

Java 6, has a bug.

44

In a TDD. What should you get from your customer regarding Java?

get the Java vendor and version number for each tier. Validate on the controller UI for each agent started.

45

What are the two ways to diagnose memory problems?

ALD (Automatic Leak Detection) and Object Instance Tracking (OIT)

46

A Java class that has a leak whereby objects are held in array objects can be detected by

OIT (and NOT ALD!)

47

What library MUST be present in order to use Object Instance Tracking?

tools.jar, which is included in the JDK bundle but not in the JRE bundle.

48

Show how to set node properties

Tiers & Nodes → (specific node) → Configure.

49

ustomer is impressed by your description of realtime business metrics, and wants to configure some in their application. The customer tells you that a value of interest is part of a specific POJO-based business transaction, but has no specifics and cannot show you source code. What can you do in AppDynamics to find more information needed to configure the info point?s

set the node property print-class-info on the class used for BT detection.

50

What questions should you ask in a TDD about Messaging frameworks?

Determine if the messaging package is one of the ones supported OOTB. If so, most or all of the work is already done. Expect all JMS implementations, as well as RabbitMQ, to have OOTB support.
Try to determine if there are any receive() loops, which will require some configuration.
If the messaging package is not supported OOTB get the specific product and version information for the implementation. Finding a download or vendor link is helpful in case you need to engage support or other team members.
Also try to get a code sample if a framework is not one that is supported OOTB.

51

Does AppDynamics support Akka?

Yes

52

You realize that you may need to use the threadprofiler service at a customer visit later in the week. What do you need to do to prepare?

validate the exact agent version; check for a matching build on the threadprofiler wiki site; request a build for your agent if there is not one already

53

What is the most commonly downstream tiers in BTs, and so do not require any naming configuration.

web services

54

When do you need to watch for microservice web services,

When the Heap is less than 1Gb

55

a node maps 1:1 with what?

a JVM instance

56

hat node property can be used to understand the API structure of a Java class?

print-class-info

57

A customer uses a brand-new open-source asynchronous HTTP framework you have never heard of. Should you expect OOTB BT detection?

No. That doesn't mean it won't happen, but expect that you will have to do some configuration

58

You find out in a TDD that your customer is using a brand-new open-source asynchronous HTTP framework you have never heard of. What should you do before starting a POV?

Since the framework is open-source, you should thoroughly review the APIs of the framework, to understand what code is involved when HTTP requests are made. If possible, confirm with your customer ahead of time that your findings agree with the way they built their app. Also, in any new software, it is common for significant changes between minor releases, so make sure you are working with the correct version of the code.

59

App-agent-config.xml contains what four main points?

1. configuration-properties
2. sensitive-data-filters
3. agent-services
4. service-configuration-properties

60

What is commonly edited on fork-config?

job elements define the classes to be instrumented. The methods instrumented will be the constructor and the method in the filter-value attribute of the method-name element.
exclude and excludes elements are exceptions to the job configuration, to avoid over-instrumentation.
include elements are exceptions to any excluding, so you can exclude a package structure but then create an include exception for a specific class.

61

Can I change the configuration of the JMX collection interval in controller-info.xml?

No, that configuration is in app-agent-config.xml

62

Can I limit the JMX metrics gathered?

es, by default (i.e. OOTB) only a small number of JMX metrics are gathered, you must explicitly configure others to show up in the metric tree (and thus to be used in health rules).

63

You are in a competitive POV with a QA group that involves all three of the big APM competitors. Which competitor should you be most concerned with?

Dynatrace

64

Dynatrace says they capture PurePaths for 100% of the user transactions, and you're saying you only capture some snapshots. Why shouldn't I go with Dynatrace, since they give me all of the information and you don't?

Dynatrace does not give "all of the information." They manage the overhead of gathering all PurePaths by reducing the visibility of the code in each PurePath, so that when load increases you see less and less information in each and every PurePath. AppDynamics always gives you full call graph resolution in the Snapshots we collect, because we are the only APM vendor that will intelligently gather the Snapshots you need to see.

65

What is the main requirement that would rule out New Relic?

If SaaS is not an option, then New Relic is not an option.

66

If a customer looking at an on-premises comments that they have OpEx budget, but not CapEx, is that good or bad for us?

Good vs. Dynatrace, because they require more hardware for on-premises deployments.